<!doctype html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>dzsq</title>
  <link rel="stylesheet" type="text/css" th:href="@{/user/css/bootstrap.min.css}">
  <link rel="stylesheet" type="text/css" th:href="@{/user/css/style.css}">
  <link rel="stylesheet" type="text/css" th:href="@{/user/css/font-awesome.min.css}">
  <link rel="apple-touch-icon-precomposed" th:href="@{/user/images/icon/icon.png}">
  <link rel="shortcut icon" th:href="@{/user/images/icon/favicon.ico}">
  <script th:src="@{/user/js/jquery-2.1.4.min.js}"></script>
  <!--[if gte IE 9]>
  <script th:src="@{/admin/js/jquery-1.11.1.min.js}" type="text/javascript"></script>
  <script th:src="@{/admin/js/html5shiv.min.js}" type="text/javascript"></script>
  <script th:src="@{/admin/js/respond.min.js}" type="text/javascript"></script>
  <script th:src="@{/admin/js/selectivizr-min.js}" type="text/javascript"></script>
  <![endif]-->
<!--[if lt IE 9]>
  <script>window.location.href='upgrade-browser.html';</script>
<![endif]-->
</head>

<body class="user-select">
<section class="container-fluid">
  <div th:replace="~{common/common::topbar}"></div>
  <div class="row">
    <div th:replace="~{common/common::sidebar(active='comment')}"></div>
    <div class="col-sm-9 col-sm-offset-3 col-md-10 col-lg-10 col-md-offset-2 main" id="main">
      <form action="/Comment/checkAll" method="post">
        <h1 class="page-header">管理</h1>
        <div class="table-responsive">
          <table class="table table-striped table-hover">
            <thead>
              <tr>
                <th><span class="glyphicon glyphicon-th-large"></span> <span class="visible-lg">选择</span></th>
                <th><span class="glyphicon glyphicon-file"></span> <span class="visible-lg">摘要</span></th>
                <th><span class="glyphicon glyphicon-file"></span> <span class="visible-lg">Email</span></th>
                <th><span class="glyphicon glyphicon-time"></span> <span class="visible-lg">日期</span></th>
                <th><span class="glyphicon glyphicon-pencil"></span> <span class="visible-lg">操作</span></th>
              </tr>
            </thead>
            <tbody th:each="comment : ${comments}">
              <tr>
                <td><input type="checkbox" class="input-control" name="checkbox[]" value="" /></td>
                <td class="article-title" th:text="${comment.getContent()}"></td>
                <td th:text="${comment.getEmail()}"></td>
                <td th:text="${#dates.format(comment.getDate(),'yyyy-MM-dd')}"></td>
                <td><a rel="1" name="delete" th:href="@{/deleteComment}+${comment.getId()}">删除</a></td>
              </tr>
            </tbody>
          </table>
        </div>
        <footer class="message_footer">
          <nav>
            <div class="btn-toolbar operation" role="toolbar">
              <div class="btn-group" role="group"> <a class="btn btn-default" onClick="select()">全选</a> <a class="btn btn-default" onClick="reverse()">反选</a> <a class="btn btn-default" onClick="noselect()">不选</a> </div>
              <div class="btn-group" role="group">
                <button type="submit" class="btn btn-default" data-toggle="tooltip" data-placement="bottom" title="删除全部选中" name="checkbox_delete">删除</button>
              </div>
            </div>
            <ul class="pagination pagenav">
              <li class="disabled"><a aria-label="Previous"> <span aria-hidden="true">&laquo;</span> </a> </li>
              <li class="active"><a>1</a></li>
              <li class="disabled"><a aria-label="Next"> <span aria-hidden="true">&raquo;</span> </a> </li>
            </ul>
          </nav>
        </footer>
      </form>
    </div>
  </div>
</section>

<div th:replace="~{common/common::info}"></div>
</body>
</html>
